﻿//
// Created by Administrator on 2022/6/16.
//

#include "MyDialog.h"

#define TIMER_ID 1000

BEGIN_EVENT_TABLE ( MyDialog, wxFrame )
                EVT_TIMER( TIMER_ID, MyDialog::OnTimer )
END_EVENT_TABLE()


MyDialog::MyDialog( wxWindow *parent )
    :wxFrame ( parent, wxNewId(), "Transfer", wxDefaultPosition, wxDefaultSize,
                       wxDEFAULT_FRAME_STYLE ^ wxMAXIMIZE_BOX ^ wxRESIZE_BORDER )
{
    CreateStatusBar();
    SetLabel("Transfer");
    SetClientSize ( wxSize ( 350, 500 ) );
    auto* dialogRootBoxSizer = new wxBoxSizer ( wxVERTICAL );
    auto *start_post_button = new wxButton ( this, wxNewId(), "启动传送" );
    dialogRootBoxSizer->Add( start_post_button );
    this->SetSizer ( dialogRootBoxSizer );
}

MyDialog::~MyDialog(){

}

void MyDialog::OnTimer(wxTimerEvent &event) {

}